package com.example.demo.service.impl;

import com.example.demo.mapper.JournalMapper;
import com.example.demo.pojo.Journal;
import com.example.demo.service.JournalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JournalServiceImpl implements JournalService {

    @Autowired
    private JournalMapper journalMapper;

    @Override
    public List<Journal> findAll() {

        return journalMapper.findAll();
    }

    @Override
    public int insert(Journal journal) {
        return journalMapper.insert(journal);
    }
}
